def solve(s):
	ans = 0
	for k in s:
		ans = ans + ord(k)
	return ans

ss = input().split()
ans = 0
for j in ss:
	ans = ans + solve(j)
print(ans)